/**
 * @description: ShopGoods interface parameters
 */

export interface getProductParams {
  query?: string;
  pagenum: number;
  pagesize: number;
}
export interface addProductParams {
  goods_name: string;
  goods_cat: string;
  goods_price: number;
  goods_number: number;
  goods_weight: number;
  goods_introduce?: string;
  pics?: string;
  attrs?: string;
}
export interface getCategoriesParams {
  resultType: string;
  type?: number;
  pagenum?: string;
  pagesize?: string;
}
export interface addCategoryParams {
  cat_pid: number;
  cat_name: string;
  cat_level: number;
}
export interface updateCategoryParams {
  id: number;
  cat_name: string;
}
export interface getCategoryAttributesParams {
  id: number;
  sel: string;
}
export interface updateProductParams {
  id: number;
  goods_name: string;
  goods_cat: string;
  goods_price: number;
  goods_number: number;
  goods_weight: number;
  goods_introduce?: string;
  pics?: string;
  attrs?: string;
}
export interface addAttributesParams {
  id: number;
  attr_name: string;
  attr_sel: string;
  attr_vals?: string | string[];
}
export interface updateAttributesParams {
  id: number;
  attr_id: number;
  attr_name: string;
  attr_sel: string;
  attr_vals?: string | string[];
}
export interface getSingleAttributeParams {
  id: number;
  attr_id: number;
  attr_sel: string;
  attr_vals?: string | string[];
}
export interface deleteAttributesParams {
  id: number;
  attrid: number;
}
